home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / SCRIPTZ / WHIRL.ZIP / whirl.txt
Text File  |  1996-12-29  |  2KB  |  77 lines

  1. *************************
  2. * Roulette Wheel script *
  3. * ===================== *
  4. *************************
  5.  
  6. Here's a small script that'll do a roulette wheel spin, using red/black
  7. colours, and the numbers 1 to 25. You'll either win, loose, or the 
  8. ball'll bounce out of the wheel:-) (but not often)
  9. Script is as follows, and goes in your events...
  10.  
  11. 1:on text:>whirl*:#: {
  12.   /set %roulplaynick $nick
  13.   /set %colour $read c:\winprogs\mirc\txts\roulette.txt
  14.   if bounces isin %colour { /msg $chan $read -sroulbounce c:\winprogs\mirc\txts\games.txt | goto whirlend }
  15.   elseif $parm2 isin %colour || $parm3 isin %colour { /msg $chan $read -sroulwin c:\winprogs\mirc\txts\games.txt | goto whirlend }
  16.   else /msg $chan $read -sroullost c:\winprogs\mirc\txts\games.txt
  17.   :whirlend
  18. }
  19.  
  20. What a person would type, would (eg) be >whirl black, >whirl red 8, >whirl 22
  21.  
  22.  
  23. The colour is read from my c:\winprogs\mirc\txts\roulette.txt file, which has 
  24. the following in it...
  25.  
  26. 25
  27. black 1
  28. red 2
  29. black 3
  30. red 4
  31. black 5
  32. red 6
  33. black 7
  34. red 8
  35. black 9
  36. red 10
  37. black 11
  38. red 12
  39. black 13
  40. red 14
  41. black 15
  42. red 16
  43. black 17
  44. red 18
  45. black 19
  46. red 20
  47. black 21
  48. red 22
  49. black 23
  50. red 24
  51. black 25
  52.  
  53. The other lines are read from my c:\winprogs\mirc\txts\games.txt file which looks a bit 
  54. like this:
  55.  
  56. roulwin - %roulplaynick spins the roulette wheel, and the ball lands in %colour - You win %roulplaynick $+ !!
  57. roullost - %roulplaynick spins the roulette wheel, and the ball lands in %colour - You lost sorry %roulplaynick $+ .
  58. roulbounce - %roulplaynick spins the roullette wheel, and the ball %colour - Yikes, better spin again %roulplaynick $+ !
  59.  
  60. Although you can whack all the lines into a single roulette.txt file (or whatever) if
  61. you want.
  62.  
  63. Oh yep make sure listening is turned 'on'
  64.  
  65. Happy spinning :-D
  66.  
  67. Obviously u can do whattevver you want, but if you include this script in a bot,
  68. I'd appreciate a mention of my nick, and The <ò> Aut0Bot <ò>, cheerz.
  69.  
  70. Hi'z to oH_yEaH, Wichita-Guy, ^monty, MEK and sumWOMAN
  71.  
  72. ***************************************************
  73. * Roulette wheel spin, part of the Aut0Bot, ⌐1996 *
  74. *     written by Phillip Renfield aka _Qu^rtZ_    *
  75. ***************************************************
  76.  
  77.